package com.qf.fmall.index.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.fmall.index.entity.ProductImg;
import com.qf.fmall.index.mapper.ProductImgMapper;
import com.qf.fmall.index.service.IProductImgService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author weijy
 * @since 2024-01-16
 */
@Service
public class ProductImgServiceImpl extends ServiceImpl<ProductImgMapper, ProductImg> implements IProductImgService {

    @Override
    public Object getProductById(Integer productId) {
        List<ProductImg> list = list(new QueryWrapper<ProductImg>().eq("product_id",productId));

        return list;
    }
}
